package mani.threads;

public class TestClient {

//	public static void main(String[] args) {
//		
//		PrintJob printJob = new PrintJob();
//		
//		Thread oddThread = new Thread(new OddThread(printJob));		
//		Thread evenThread = new Thread(new EvenThread(printJob));
//		
//		oddThread.start();
//		evenThread.start();
//
//	}
	
	public static void main(String arg[]){
		PrintJob printJob = new PrintJob();
		EvenThread even = new EvenThread(printJob);
		MyThreadFactory mtf = new MyThreadFactory("Shymmani");
		Thread t;
		for(int i = 0;i<10;i++){
			t = mtf.newThread(even);
			t.start();
		}
	
	}

	
}
